public class OpponentModel extends OpponentModel
| Modifier and Type | Class and Description |
|---|---|
static class |
OpponentModel.Extreme |
fBiddingHistory, fDomain| Constructor and Description |
|---|
OpponentModel(UtilitySpace utilitySpace)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
findMinMaxUtility()
Find the minimum and maximum utilities of the bids in the utility space.
|
EvaluatorHypothesis |
getBestHypothesis(int issue) |
double |
getExpectedUtility(Bid bid)
Get the expected utility of a bid.
|
double |
getExpectedWeight(int number)
Get the expected weight of a particular issue.
|
double |
getExtremeEvaluation(Evaluator evaluator,
OpponentModel.Extreme extreme) |
Bid |
getFirstBid()
Get the first bid.
|
Hypothesis |
getHypothesis(int index) |
double |
getNormalizedUtility(Bid bid)
Get the normalised utility of a bid.
|
double |
getNormalizedUtility(Bid bid,
boolean debug)
Get the normalised utility of a bid.
|
void |
printBestHypothesis()
Print the best hypothesis.
|
void |
updateBeliefs(Bid opponentBid,
long currentTime,
double totalTime)
Update the beliefs about the opponent, based on an observation.
|
getDomain, haveSeenBefore, isCrashed, updateBeliefspublic OpponentModel(UtilitySpace utilitySpace)
utilitySpace - The utility space of the agent.agent - The agent (used only for logging purposes).public double getNormalizedUtility(Bid bid) throws java.lang.Exception
getNormalizedUtility in class OpponentModelbid - The bid to get the normalised utility of.java.lang.Exceptionpublic double getNormalizedUtility(Bid bid, boolean debug) throws java.lang.Exception
bid - The bid to get the normalised utility of.debug - Whether or not to output debugging informationjava.lang.Exceptionpublic double getExpectedUtility(Bid bid) throws java.lang.Exception
getExpectedUtility in class OpponentModelbid - The bid to get the expected utility of.java.lang.Exceptionpublic void updateBeliefs(Bid opponentBid, long currentTime, double totalTime) throws java.lang.Exception
opponentBid - The opponent's bid that was observed.java.lang.Exceptionprotected void findMinMaxUtility()
throws java.lang.Exception
findMinMaxUtility in class OpponentModeljava.lang.Exceptionpublic double getExtremeEvaluation(Evaluator evaluator, OpponentModel.Extreme extreme)
public double getExpectedWeight(int number)
getExpectedWeight in class OpponentModelnumber - The issue number.public void printBestHypothesis()
public EvaluatorHypothesis getBestHypothesis(int issue)
public Bid getFirstBid()
public Hypothesis getHypothesis(int index)